package com.aliang.clickhouseautoconfig.properties;

import org.springframework.boot.context.properties.ConfigurationProperties;

@ConfigurationProperties( //此注解表示这是一个配置文件类,会自动加载对应前缀的属性并赋值
        prefix = "spring.clickhouse"
)
public class ClickhouseProperties {

    private int coreSize =2;

    private int maxSize = 4;

    private String url;

    private String driverClass = "ru.yandex.clickhouse.ClickHouseDriver";

    private String name;

    private String password;

    public int getCoreSize() {
        return coreSize;
    }

    public void setCoreSize(int coreSize) {
        this.coreSize = coreSize;
    }

    public int getMaxSize() {
        return maxSize;
    }

    public void setMaxSize(int maxSize) {
        this.maxSize = maxSize;
    }

    public String getUrl() {
        return url;
    }

    public void setUrl(String url) {
        this.url = url;
    }

    public String getDriverClass() {
        return driverClass;
    }

    public void setDriverClass(String driverClass) {
        this.driverClass = driverClass;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getPassword() {
        return password;
    }

    public void setPassword(String password) {
        this.password = password;
    }
}
